from django.urls import path

from tadmin.views import adAPIVIEW, All, AllBY, AddAPI
from tadmin.views import AdminUserView
from rest_framework.routers import DefaultRouter
from tadmin.views import ResourcesAll, ResourcesAdd

urlpatterns = [
    path('resourcesall/',ResourcesAll.as_view()),
    path('resourcesadd/',ResourcesAdd.as_view()),
    path('ad/',adAPIVIEW.as_view()),
    path('all/',All.as_view()),
    path('allby/',AllBY.as_view()),
    path('addAPI/',AddAPI.as_view())
]

router = DefaultRouter()
router.register('users', AdminUserView)
urlpatterns += router.urls

